package com.lnking.lnkingplace.model.enums;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 联坤
 */
@Data
public class ActivityStatus {
    public static final String END="已结束";
    public static final String START="进行中";
    public static final String BEFORE="未开始";
    public   static   String StatusByTime(LocalDateTime start,LocalDateTime end){
        LocalDateTime now=LocalDateTime.now();
        return    (now.isAfter(start)&& now.isBefore(end))?START:now.isBefore(start)?BEFORE:END;

    }
}
